package chapter04;

public class Java02_Object {
    public static void main(String[] args) {
        Animal a1 = new Animal();
        a1.type = "猫";
        a1.name = "小花";
        a1.Run();
        Animal a2 = new Animal();
        a2.type = "狗";
        a2.name = "小黑";
        a2.Run();
    }
}
class Animal {
    String type;
    String name;

    void Run() {
        System.out.println(type+" "+name+"跑开了");
    }
}
